import {onBeforeMount, onBeforeUnmount, onBeforeUpdate, onMounted, onUnmounted, onUpdated, ref, reactive} from "vue";

export default function (obj) {
    if (obj === undefined || obj === null) {
        return true;
    }
    if(typeof obj === 'object' && Object.keys(obj).length === 0){
        return true;
    }
    if (typeof obj === 'string' && (obj.trim().length === 0 || obj === "undefined" || obj === "null")) {
        return true;
    }
    if (Array.isArray(obj) && obj.length === 0) {
        return true;
    }

    return false;
}
